//index.js
//获取应用实例
const app = getApp()

Page({
  data: {
    motto: 'Hello World',
    userInfo: {},
    hasUserInfo: false,
    canIUse: wx.canIUse('button.open-type.getUserInfo'),
    text:''
  },

  onLoad: function (options) {
    var that = this
    //文字逐个显示
    var story = "时尚、潮流、个性、安全";
    var i = 0;
    var time = setInterval(function () {
      var text = story.substring(0, i);
      i++;
      that.setData({
        text: text
      });
      if (text.length == story.length) {
        //   console.log("定时器结束！");
        clearInterval(time);
      }
    }, 500)
  },

  callGroom: function () {
    wx.makePhoneCall({
      phoneNumber: '2546416155',
    })
  },
  goToTalkPage:function(){
    // wx.redirectTo({
    //   url: '../list/list',
    // })
    wx.switchTab({
      url: '../list/list',
    })
  }

})

